#include "dice.h"
#include <cstdlib>
#include <stdio.h>      
#include <stdlib.h>     
#include <time.h>
#include <iostream>
using namespace std;

dice::dice(int)
{
	value=0;
}

void dice::throw_dice()
{
	value=rand() % 6+1;
	srand (time(NULL));

}
void dice::GetValue()
{
	switch (value)
	{
	case 1:	cout<<"|o--o--o|"<<endl;
			cout<<"|o--X--o|"<<endl;
			cout<<"|o--o--o|"<<endl;
		break;

	case 2:	cout<<"|o--o--X|"<<endl;
			cout<<"|o--o--o|"<<endl;
			cout<<"|X--o--o|"<<endl;
		break;
	case 3:	cout<<"|X--o--o|"<<endl;
			cout<<"|o--X--o|"<<endl;
			cout<<"|o--o--X|"<<endl;
		break;
	case 4: cout<<"|X--o--X|"<<endl;
			cout<<"|o--o--o|"<<endl;
			cout<<"|X--o--X|"<<endl;
		break;
	case 5:	cout<<"|X--o--X|"<<endl;
			cout<<"|o--X--o|"<<endl;
			cout<<"|X--o--X|"<<endl;
		break;
	case 6:	cout<<"|X--o--X|"<<endl;
			cout<<"|X--o--X|"<<endl;
			cout<<"|X--o--X|"<<endl;
	break;
	}
	
}

dice::~dice()
{
}
